//
//  main.m
//  02-分数作业(老师版)
//
//  Created by LL.F on 16/7/7.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Fraction.h"
int main(int argc, const char * argv[]) {
    
    //  声明两个分数
    Fraction *oneFra = [Fraction fractionWithMember:3 denminator:5];
    Fraction *twoFra = [Fraction fractionWithMember:2 denminator:7];
    //  两个分数相加
    Fraction *resultFra = [oneFra addFraction:twoFra];
    NSLog(@"%ld / %ld" , resultFra.member , resultFra.denominator);
    //  相减
    Fraction *subResult = [oneFra subFraction:twoFra];
    NSLog(@"%ld / %ld" , subResult.member , subResult.denominator);
    
    return 0;
}
